import React from 'react'
import styles from './index.module.scss'
export default class FileButton extends React.Component{
  render () {
    return (
        <div className={styles.FileButton}>
            <div className={styles.cannel} onClick={ this.props.onClear ? this.props.onClear: this.props.onCancel}>{ this.props.conText ? this.props.conText:'取消'}</div>
            <div className={styles.enter} onClick={this.props.onSave}>确定</div>
        </div>
    )
  }
}